MODULE_OBJS := actor.o \
	network.o \
	des.o\
	global.o\
	snsim.o

TARGET := snsim
default: $(TARGET)

DEPS := $(MODULE_OBJS:.o=.d)

  -include $(DEPS)

CFLAGS 	+= $(GENERIC_INC) \
	-I . -Wall -Wextra -O5 -Wno-deprecated 

$(TARGET): $(MODULE_OBJS)
	@ echo Linking $^ to $@
	@ g++ $(CFLAGS) $(MODULE_OBJS) $(LDFLAGS) -o $@

%.o:%.cpp
	@ echo Compiling $< to $@
	@ g++ $(CFLAGS) $< -c

%.d:%.cpp
	@ echo Generating Dependencies for $<
	@ g++ -MM $(CFLAGS) $< > $@

clean:
	rm -rf $(MODULE_OBJS) $(DEPS)

realclean:
	rm -rf $(DEPS) $(TARGET) $(MODULE_OBJS) *.dot socialNetwork.summary socialNetwork.log
